<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonElementFactory类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_element_factory.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_s_a_ribbon_element_factory-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonElementFactory类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>SARibbon的子元素创建的工厂，SARibbon内部创建子元素都通过SARibbonElementFactory来创建  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_element_factory_8h_source.html">SARibbonElementFactory.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a18b577e30c6f1855a011561f30d62a8a" id="r_a18b577e30c6f1855a011561f30d62a8a"><td class="memItemLeft" align="right" valign="top"><a id="a18b577e30c6f1855a011561f30d62a8a" name="a18b577e30c6f1855a011561f30d62a8a"></a>
virtual <a class="el" href="class_s_a_ribbon_bar.html">SARibbonBar</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonBar</b> (QWidget *parent)</td></tr>
<tr class="separator:a18b577e30c6f1855a011561f30d62a8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8383bdb74f75b156a576ad301ce173f5" id="r_a8383bdb74f75b156a576ad301ce173f5"><td class="memItemLeft" align="right" valign="top"><a id="a8383bdb74f75b156a576ad301ce173f5" name="a8383bdb74f75b156a576ad301ce173f5"></a>
virtual <a class="el" href="class_s_a_ribbon_tab_bar.html">SARibbonTabBar</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonTabBar</b> (QWidget *parent)</td></tr>
<tr class="separator:a8383bdb74f75b156a576ad301ce173f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af35ccbfa7f8c7d3f78a4528feb09225c" id="r_af35ccbfa7f8c7d3f78a4528feb09225c"><td class="memItemLeft" align="right" valign="top"><a id="af35ccbfa7f8c7d3f78a4528feb09225c" name="af35ccbfa7f8c7d3f78a4528feb09225c"></a>
virtual <a class="el" href="class_s_a_ribbon_application_button.html">SARibbonApplicationButton</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonApplicationButton</b> (QWidget *parent)</td></tr>
<tr class="separator:af35ccbfa7f8c7d3f78a4528feb09225c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acec82c48e00eca450c228a5a77aabb2e" id="r_acec82c48e00eca450c228a5a77aabb2e"><td class="memItemLeft" align="right" valign="top"><a id="acec82c48e00eca450c228a5a77aabb2e" name="acec82c48e00eca450c228a5a77aabb2e"></a>
virtual <a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonCategory</b> (QWidget *parent)</td></tr>
<tr class="separator:acec82c48e00eca450c228a5a77aabb2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab37fb2ee82fd88f71008bf829964314" id="r_aab37fb2ee82fd88f71008bf829964314"><td class="memItemLeft" align="right" valign="top"><a id="aab37fb2ee82fd88f71008bf829964314" name="aab37fb2ee82fd88f71008bf829964314"></a>
virtual <a class="el" href="class_s_a_ribbon_context_category.html">SARibbonContextCategory</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonContextCategory</b> (QWidget *parent)</td></tr>
<tr class="separator:aab37fb2ee82fd88f71008bf829964314"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae44d0a6c4069f5039e5a72d4146a1a51" id="r_ae44d0a6c4069f5039e5a72d4146a1a51"><td class="memItemLeft" align="right" valign="top"><a id="ae44d0a6c4069f5039e5a72d4146a1a51" name="ae44d0a6c4069f5039e5a72d4146a1a51"></a>
virtual <a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonPannel</b> (QWidget *parent)</td></tr>
<tr class="separator:ae44d0a6c4069f5039e5a72d4146a1a51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7919a439b82df952b4f31393e4ae63d0" id="r_a7919a439b82df952b4f31393e4ae63d0"><td class="memItemLeft" align="right" valign="top"><a id="a7919a439b82df952b4f31393e4ae63d0" name="a7919a439b82df952b4f31393e4ae63d0"></a>
virtual <a class="el" href="class_s_a_ribbon_separator_widget.html">SARibbonSeparatorWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonSeparatorWidget</b> (QWidget *parent)</td></tr>
<tr class="separator:a7919a439b82df952b4f31393e4ae63d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5072140a1f9fbaa17c6047476c808199" id="r_a5072140a1f9fbaa17c6047476c808199"><td class="memItemLeft" align="right" valign="top"><a id="a5072140a1f9fbaa17c6047476c808199" name="a5072140a1f9fbaa17c6047476c808199"></a>
virtual <a class="el" href="class_s_a_ribbon_gallery.html">SARibbonGallery</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonGallery</b> (QWidget *parent)</td></tr>
<tr class="separator:a5072140a1f9fbaa17c6047476c808199"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a571557bed136bb06e8999e7b5de052a3" id="r_a571557bed136bb06e8999e7b5de052a3"><td class="memItemLeft" align="right" valign="top"><a id="a571557bed136bb06e8999e7b5de052a3" name="a571557bed136bb06e8999e7b5de052a3"></a>
virtual <a class="el" href="class_s_a_ribbon_gallery_group.html">SARibbonGalleryGroup</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonGalleryGroup</b> (QWidget *parent)</td></tr>
<tr class="separator:a571557bed136bb06e8999e7b5de052a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e9976002d7c4caaae4a9e27aaaceb3b" id="r_a8e9976002d7c4caaae4a9e27aaaceb3b"><td class="memItemLeft" align="right" valign="top"><a id="a8e9976002d7c4caaae4a9e27aaaceb3b" name="a8e9976002d7c4caaae4a9e27aaaceb3b"></a>
virtual <a class="el" href="class_s_a_ribbon_tool_button.html">SARibbonToolButton</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonToolButton</b> (QWidget *parent)</td></tr>
<tr class="separator:a8e9976002d7c4caaae4a9e27aaaceb3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b823ee4b71df8ed98574e6cb624836f" id="r_a6b823ee4b71df8ed98574e6cb624836f"><td class="memItemLeft" align="right" valign="top"><a id="a6b823ee4b71df8ed98574e6cb624836f" name="a6b823ee4b71df8ed98574e6cb624836f"></a>
virtual <a class="el" href="class_s_a_ribbon_control_button.html">SARibbonControlButton</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonControlButton</b> (QWidget *parent)</td></tr>
<tr class="separator:a6b823ee4b71df8ed98574e6cb624836f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a70d871b78a9d6c1fd10d07761837e1" id="r_a4a70d871b78a9d6c1fd10d07761837e1"><td class="memItemLeft" align="right" valign="top"><a id="a4a70d871b78a9d6c1fd10d07761837e1" name="a4a70d871b78a9d6c1fd10d07761837e1"></a>
virtual <a class="el" href="class_s_a_ribbon_stacked_widget.html">SARibbonStackedWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createRibbonStackedWidget</b> (<a class="el" href="class_s_a_ribbon_bar.html">SARibbonBar</a> *parent)</td></tr>
<tr class="separator:a4a70d871b78a9d6c1fd10d07761837e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aede39dc2e1d46d963a4abfaa58cb4809" id="r_aede39dc2e1d46d963a4abfaa58cb4809"><td class="memItemLeft" align="right" valign="top"><a id="aede39dc2e1d46d963a4abfaa58cb4809" name="aede39dc2e1d46d963a4abfaa58cb4809"></a>
virtual <a class="el" href="class_s_a_ribbon_button_group_widget.html">SARibbonButtonGroupWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>craeteButtonGroupWidget</b> (QWidget *parent)</td></tr>
<tr class="separator:aede39dc2e1d46d963a4abfaa58cb4809"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a205f493e3f296b890926aa3243c71ede" id="r_a205f493e3f296b890926aa3243c71ede"><td class="memItemLeft" align="right" valign="top"><a id="a205f493e3f296b890926aa3243c71ede" name="a205f493e3f296b890926aa3243c71ede"></a>
virtual <a class="el" href="class_s_a_ribbon_quick_access_bar.html">SARibbonQuickAccessBar</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createQuickAccessBar</b> (QWidget *parent)</td></tr>
<tr class="separator:a205f493e3f296b890926aa3243c71ede"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1e64628f7802d75ff22a6e8558247ab" id="r_ae1e64628f7802d75ff22a6e8558247ab"><td class="memItemLeft" align="right" valign="top"><a id="ae1e64628f7802d75ff22a6e8558247ab" name="ae1e64628f7802d75ff22a6e8558247ab"></a>
virtual <a class="el" href="class_s_a_ribbon_system_button_bar.html">SARibbonSystemButtonBar</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>createWindowButtonGroup</b> (QWidget *parent)</td></tr>
<tr class="separator:ae1e64628f7802d75ff22a6e8558247ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38cb798fba78f474db387d9229b56415" id="r_a38cb798fba78f474db387d9229b56415"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_s_a_ribbon_pannel_option_button.html">SARibbonPannelOptionButton</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a38cb798fba78f474db387d9229b56415">createRibbonPannelOptionButton</a> (<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *pannel)</td></tr>
<tr class="memdesc:a38cb798fba78f474db387d9229b56415"><td class="mdescLeft">&#160;</td><td class="mdescRight">创建SARibbonPannelOptionButton  <br /></td></tr>
<tr class="separator:a38cb798fba78f474db387d9229b56415"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>SARibbon的子元素创建的工厂，SARibbon内部创建子元素都通过SARibbonElementFactory来创建 </p>
<p>由于SARibbonBar是一个复合控件，很多子窗口组合而成，有些部件的创建如果想继承，那么就需要这个工厂类来处理 如SARibbonCategory，可以重载此类的createRibbonCategory,返回重载的类的实例 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a38cb798fba78f474db387d9229b56415" name="a38cb798fba78f474db387d9229b56415"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38cb798fba78f474db387d9229b56415">&#9670;&#160;</a></span>createRibbonPannelOptionButton()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel_option_button.html">SARibbonPannelOptionButton</a> * SARibbonElementFactory::createRibbonPannelOptionButton </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *</td>          <td class="paramname"><span class="paramname"><em>pannel</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>创建SARibbonPannelOptionButton </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">pannel</td><td>附属的pannel </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="class_s_a_ribbon_pannel_option_button.html" title="Pannel右下角的操作按钮">SARibbonPannelOptionButton</a> </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_element_factory_8h_source.html">SARibbonElementFactory.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonElementFactory.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_element_factory.html">SARibbonElementFactory</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
